package org.fujene.search;

public class SearchResult{
	private int resultIndex;
	private double score;
	private String[] content;
	private String[] appendix;

	private SearchResult(){}

	public static SearchResult makeResult(double score, String[] content, String[] appendix){
		SearchResult result = new SearchResult();
		result.score = score;
		result.content = content;
		result.appendix = appendix;
		return result;
	}

	public double score(){
		return score;
	}

	public void setIndex(int index){
		this.resultIndex = index;
	}

	public int index(){
		return resultIndex;
	}

	public int contentSize(){
		return content.length;
	}

	public String content(int index){
		return content[index];
	}

	public int appendixSize(){
		return appendix.length;
	}

	public String appendix(int index){
		return appendix[index];
	}
}
